package com.book.vo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.book.pojo.Book;
import lombok.Data;

import java.time.LocalDate;
import java.util.List;

@Data
public class AuthorVo {

    private Long id;

    @TableField("name")
    private String name;

    @TableField("username")
    private String username;

    @TableField("password")
    private String password;

    @TableField("salt")
    private String salt;

    @TableField("sex")
    private String sex;

    @TableField("address")
    private String address;

    @TableField("telephone")
    private Integer telephone;

    /**
     * 1不是 2是
     */
    @TableField("contract")
    private String contract;

    @TableField("creat_time")
    private LocalDate creatTime;

    /**
     * 是否封禁 1不是 2是
     */
    @TableField("status")
    private String status;
    //注册天数
    private Integer days;
    //作品集合
    private List<Book> books;
    //每本作品总字数
    private Integer bookNumber;

}
